import path, time

src = path.path('C:/extendedstats/trunk/srcds/')
dst = path.path('C:/srcds/cstrike/addons/eventscripts/extendedstats/')

for d in src.walkdirs():
    if not '.svn' in d:
        reld = src.relpathto(d)
        dd = dst.joinpath(reld)
        if not dd.isdir():
            dd.mkdir()

for f in src.walkfiles():
    if not '.svn' in f:
        relf = src.relpathto(f)
        bytes = f.bytes()
        dst.joinpath(relf).write_bytes(bytes)
for f in dst.walkfiles('*.pyc'):
    f.remove()
print 'done'
time.sleep(10)